Fixed user id NaN bug after registration, Error handling refactoring