Modified login() in index model and have forget_model throw an exception when query fails