fixed depositing bug: resource_type is now optional, and werkzeug throws exception if we try to get it without checking for its existence