Functions are now fixed to return something

all functions return 0 by default (except constructors). Also, a
try-catch was implemented in UserController so that it catches errors
before it crash and returns the error code (or 0 if success).