Added validations and facebook plugin