Added user checking and error passing for Login