Fixes for rewrite

add test for rewriting into process_url function
add test for form rewrite url
remove if / else statment into process_url function
fixes for rewrite into login form and form class