Implemented basic user api
Minor changes to user repository