Fixed issue with ajax login so that the footer is properly updated