Changed dates to date sql format rather than varchar.
Added login functionality to User.