create post model, validations, associations and testing

also updated the email regex