updated the way favourites are searched by the api
updated validations and fixed js issues