Added SharedPrefecnces for username, password, and major. Also cleaned up some code.
Added SharedPrefecnces for username, password, and major. Also cleaned up some code.