fixed login issue, user model tests