added user to database upon successful login