Added Authentication

Authentication checking added which I forgot earlier.