fix bug with registration form