Fixes 500 on blank username for registration