fixing bug for login interface (not working)