Fixed "middle name" layout in registration

Please see commit message for detailed information.