Implements blocks & Promise support in login