added filter, login logout, auth check, forms and their validation