user login with ajax in index module