added category names to browsing and fixed login bug for invalid logins