Added password checking to user login