Implementing login functionality in asp net core