private void parseStatus(UserState status, Map<String, Object> pageVariables) {
        switch (status) {
            case EMPTY_DATA:
            case FAILED_AUTH:
            case NO_SUCH_USER_FOUND:
            case SQL_ERROR:
            case USER_ALREADY_EXISTS:
                pageVariables.put("errorMsg", status.getMessage());
                break;
            case WAIT_AUTH:
            case WAIT_USER_REG:
            case USER_ADDED:
                pageVariables.put("infoMsg", status.getMessage());
                break;
            default:
                pageVariables.put("userStatus", status.getMessage());
                break;
        }
    }