added the beginning of a login framework