Check user logged in

Now the entry controller checks if the user logged in, and if not
redirect to the login / register page