Added user authentication feature.