Meaning of error:
The error "InvalidCredentialsException" means that you are using either the incorrect username, email address, or password. Please wait 30 minutes and then try again, make sure you use the correct account credentials. You may also want to change your password to something you haven't previously used.
If multiple failed attempts to log in are made in a row, you might have to wait 24 hours before the account can be authenticated again. If your problem is not resolved after 24 hours, please contact customer support (Official mojang support).
This is, however, a temporary issue, and waiting 30 minutes to 1 hour before attempting to log in again should solve the problem.
If you're playing with Non-premium account (not logged in) it could mean your username includes characters which are not supported by Minecraft (example: "#$%&)(/") or username is too short or too long for the server you're trying to join.