Fix bug in function call
Change colour for required fields