Refactored to show verbose errors to users
Fixed name, to fetch from the database