This has happened to me before, just be patient and wait a while before you try logging in again. If this doesn't work contact Mojang support, and if it wasn't a glitch it may have been lack of security. Make sure to have your security questions enabled and keep your email/password private.