Updated Sign in user and user states

Better sign in sequence with loading page. Also better user state
management