getting n saving user after login