Login method will return false in case of error