Adds user registration functionality