add ajax on log in feature, login/registration ajax handled