Fixed the javascript password gallery reveal

 - Wrapped the login function call in a onclick event
 - Added a gallery id to the gallery div as were using getElementById
 - Added open and close brackets around the if condition