Created models, added user login functionality