finished register and stor user functions