Library for easy login process