fixing ajax login
buttons update on login