init for signup and login page