Check login information correctly