Mini refactor of user model and loans helper