Enhanced login api