added return button submit for login and register