fixed bug with register button