added login and ajax pull from DB