added login, create user, and profiles functionality