Add message instead of messagebox.
Add session management service with check if user exists in database and login from wpf.