'Authenticate a login request'

@staticmethod
def parse_login(message):

    if ((not message) or (not message.body)):
        return (None, None)
    words = message.body.split('    ')
    login = False
    email = None
    password = None
    if ('LOGIN' in [word.upper() for word in words]):
        login = True
    if ((len(words) == 2) and login):
        password = words[1]
    elif ((len(words) == 3) and login):
        email = words[1]
        password = words[2]
    if login:
        if (password and (not email)):
            email = message.from_address
        return (email, password)
    else:
        return (None, None)
