move login to partial