Added form POST data handling for registration form