further integrated login script into application. began process to ajax authentication