fixed some functionality

contacts, some input validation, showing different colour in calendar
if day has an appoinment