fixed bug in registration form
Merge pull request #1579 from xisi/registration-popup-fix

Fix wrong popup in registration form