Fixed issue with logging in and redirected home
Now it redirects accordingly to dashboard or background
	modified:   ui/views.py