Simple login library written in Swift