Edit view errors and added validations in actions.js