Added Authentication functionality