sign in & sign up now work (sign out does two)

nearly done got to add some more error code and code for after login etc