split up login page from login script