Reference refactored into partial, error messages not working, blank reference not in db showing