add validation to email
calculate course