login functionality and dashboard interface