Added password checking to user login
added some logging info to authentication function
merged login branch into develop