added stub for checking user login, some cleanup