Signing in complete
Sign in and out working, refactored