- implemented back key handler on login and register screen