Validating encoded password while logging in to application