added login feature. Last checkin before refactoring