How to get ApplicationUser by username and password in programmatically

It got solved. please refer to below link: