updated login page, check functionality