working master and login page