Added server scipts, fixed login button bugs