added userid finctionality, authorization on projects, fixed update