Updated Login for better return value.