Logging in and registration implemented