login adds user info to db