Setting up smartloginlibrary