wip on checking database for authorization of username