added error handling for forms
fixed bug that was not allowing passwords to get sent to rails