Browser refresh takes to direct home page with skipping log in page

I am creating log in page and the problem is after user sign up it shows successfully registered pop up after that push to log in page this is what i want doing, everything is ok and pushed to log in page also. here if i refresh browser with out log in after browser refresh it directly goes to home page. only this problem happens after sign up. once i log out it never goes to home page again until sign up again.

Thank you.