Btn fixes, ajax functions, Login Logic