Add redirect and message

Add a redirect and message options when the user is not logged in.