Added user login handler

Checks to make sure that the provided password is valid.