Added login capabilities and setup models for database.