Made sure that login is less prone to breaking by adding more checks