The username has not been activated or is blocked. using custom login form
If your requirement is displaying user login form in AJAX POPUP then you can consider Ajax Login/Register module.


This module provides a block with 2 links (Login, Register) for the
anonymous user. 
When the user clicks on Login or register the
requested form appears in a nice ajax popup.