Refactored register.php
Added base classes for models
login page refactored
Fixed some issues
Merge conflicts