added better_errors gem and fixed some bugs with non-existing users id