Contains code for Swipe and login