This issue occurs when using the FireGloves plugin with Firefox. To resolve the problem, disable or remove the FireGloves plugin and you will be able to login successfully to Gallery once again.