add many to many relationship and database, error messages added to signin