Feature/login api

Initial Commit of Login API.
did you mean to write groups = group_db.query(db.Group) and use groups in the next line?