EDITED signin scripts