changed register button to actuall work