Login database and shared prefrence