Implemented most basic custom login procedure