Add exception import. Add more return data to loginview.