draft login controller