Issue 37

- Added `password_reset_required` column in `user` table.
- Check while user is logging using password for `password_reset_flag`.
- Extracted `requires_login's` inner function as separate function to follow DRY.