Fixed logging in/out and added remember me feature