Added password type for input that hide the text to the user, also fixed the exception on registering events waiting to be unregistered