Correction of a bug in register and login forms