Check if login or password are correct