implement part of login page