Login stuff fixed attempt 7