doing a little bit mroe work with logging in