Added Authentication Check to End Point Functions