disabling login register on submit