Working period fields now stay on error

When creating a new working period, the fields will now keep their
previous value if an error is encountered.