Subhas | Cleanup Login/User handling

The Login/User handling part was increasingly getting messy. It was about time they were separated into proper models.