register - login checks