register button click
debugged error in register button