Disable login and register button after submit