LPS-27013 Redirect not signed in users to proper page

Hey Mika, Brian suggested me to send this code to you since he thinks you are familiar with this code. 

thanks!