AddProject function and some fixes in registration 2