Added ability to register users

Still need to make the apikey generated by the system an not just input
by user.