corrected the return type of start and fixed few bugs in autologin