WIP login controller