Added error handling and messages.

Added error handling for different use-cases.
The return select statement returns the status code and message.
The codes and messages are as follows.
0 - Internal Error
1 - Success
2 - Credentials do not match
3 - Account is already verified
4 - Verification code does not match