Added ajax_login path to login method. Credit to https://github.com/lideshi