added login functionality, ability to create user from app