creating simple login panel at index