Fix exception when user record not found
Index action to redirect user, based on login status