Fix enter on modal registration form cancelling modal rather than selecting register action
Fixed enter cancelling modal dialog rather than carrying out registration action