Login stuff fixed attempt 8