Logs user in by validating their credentials