refactor. url test passed with templates
user model updated. api wroking: returns json