reformatted login stuff