add nil judge
validate the presence of user_id and project_id
email for heroku